package edu.unh.sustain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SocializeActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.socialize);

		Button twitterButton = (Button) findViewById(R.id.twitterButton);
		twitterButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
			    Intent myIntent = new Intent(view.getContext(),
                        AuthActivity.class);
                startActivityForResult(myIntent, 0);
			}
		});

		Button facebkButton = (Button) findViewById(R.id.facebkButton);
		facebkButton.setOnClickListener(new View.OnClickListener() {
		    public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(),
                        FacebookActivity.class);
                startActivityForResult(myIntent, 0);
            }
		});

		Button linkedinButton = (Button) findViewById(R.id.linkedInButton);
		linkedinButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(),
						LinkedInActivity.class);
				startActivityForResult(myIntent, 0);
			}
		});
		
		Button gplusButton = (Button) findViewById(R.id.gplusButton);
		gplusButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(),
                        GplusActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
		
		Button pinterestButton = (Button) findViewById(R.id.pintrestButton);
		pinterestButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(),
                        PintrestActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
		
		Button foursquareButton = (Button) findViewById(R.id.foursquareButton);
        foursquareButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(),
                        FoursquareActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	}

}
